<?php 
	//$this->chromephp->log('hotel: ', $hotel);
	//$this->chromephp->log(': ', $hotels);
	
?>


<div class="container_12">
	<div class="grid_7">
		<div class="module">
			<h2><span>Definições do hotel</span></h2>
			<div class="module-body">
				<div class="container">
					<div class="row">
						<div class="span7">
							<form id="hotelSettingsForm" class="form-horizontal" method="post" action="<?php echo base_url('pt/school/setHotelData');?>">
								<div class="control-group">
									<label class="control-label">Percentagem de pagamento: </label>
									<div class="controls">
										<input type="text" class="span2" name="hotelPayment" value="<?php echo $hotel->hotelPayment; ?>" placeholder="" />
										<span class="help-inline"></span>
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">Valor do Transporte (€): </label>
									<div class="controls">
										<input type="text" class="span2" name="transportPrice" value="<?php echo $hotel->transportPrice; ?>" placeholder="" />
										<span class="help-inline"></span>
									</div>
								</div>
								<!--
								<div id="tmp01" class="control-group">
									<label class="control-label">tmp01</label>
									<div class="controls">
										<input type="text" class="span2" name="name" placeholder="insira o valor . . . ">
										<span class="help-inline"></span>
									</div>
								</div>
								<div id="tmp02" class="control-group">
									<label class="control-label">tmp02</label>
									<div class="controls">
										<input type="text" class="span2" name="name" placeholder="insira o valor . . . ">
										<span class="help-inline"></span>
									</div>
								</div>
								-->
								<input type="hidden" id="hotelId" name="hotel_id" 	value="<?php echo $hotel->id; ?>"/>
								<button id="saveButton" class="btn" type="submit">guardar</button>
							</form>
							<p></p>
							<div id="msgLabel" class=""></div>
						</div> <!-- #span8 -->
					</div><!-- #row -->
				</div> <!-- #container -->
			</div> 
		</div>
		
			
	</div>

	<div class="grid_5">
		<div class="module">
			<h2><span>Informação do Hotel</span></h2>
			<div class="module-body">
				<p></p>
				<?php 
					$created_on = date('Y-m-d H:i:s',$hotel->created_on); 
					$last_login = date('Y-m-d H:i:s',$hotel->last_login); 
				?>
				<p>	
           			<span class="label label-info">Nome</span>
               		<?php echo $hotel->company;?>
             	</p>
				<p>	
           			<span class="label label-info">endereço</span>
               		<?php echo $hotel->address;?>
             	</p>
                <p>
                	<span class="label label-info">eMail</span>		
               		<?php echo $hotel->email;?>
               	</p>
                <p>
                	<span class="label label-info">Telefone</span>		
               		<?php echo $hotel->phone;?>
               	</p>
                <p>
               		<span class="label label-info">Registo</span>
               		<?php echo $created_on;?>
               </p>
               <p>
               		<span class="label label-info">Ultimo Login</span>
               		<?php echo $last_login;?>
               </p>
               
			</div>
		</div>
	</div>
	
	<!--
	<div class="grid_7">
		<div class="module">
			<h2><span>Informação do Hotel</span></h2>
			<div class="module-body">
			</div>
		</div>
	</div>
	-->
	
	<!--
	<div class="container">
		<div class="row">
			<div class="span8">
				<form class="form-horizontal">
					<div id="clientName" class="control-group">
						<label class="control-label">Nome: </label>
						<div class="controls">
							<input type="text" class="span4" name="name" placeholder="insira o nome . . . ">
							<span class="help-inline"></span>
						</div>
					</div>
				</form>
				<button id="sendButton"  class="btn">send</button>
			</div>
		</div>
	</div>
	-->
	
	
</div>

<div style="clear:both;"></div>

